<template>
  <div class="top">
    <div class="left">
      <!-- 学位 -->
      <span class="left-s1">
        <el-select v-model="value1" placeholder="选择学位" class="select1">
          <el-option
            v-for="item in options1"
            :key="item.value"
            :label="'学位:' + item.label"
            :value="item.value"
          >
          </el-option> </el-select
      ></span>
      <!-- 性别 -->
      <span class="left-s2">
        <el-select v-model="value2" placeholder="选择性别" class="select2">
          <el-option
            v-for="item in options2"
            :key="item.value"
            :label="'性别: ' + item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
      </span>
    </div>
    <div class="right">
      <el-button icon="el-icon-plus" circle></el-button>
      <el-input placeholder="搜索老师姓名" prefix-icon=' el-icon-search' ></el-input>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      options1: [
        {
          value1: "选项1",
          label: "博士学位",
        },
        {
          value: "选项2",
          label: "黄金糕",
        },
        {
          value: "选项3",
          label: "双皮奶",
        },
        {
          value: "选项4",
          label: "北京烤鸭",
        },
      ],
      value1: "",
      options2: [
        {
          value: "选1",
          label: "男",
        },
        {
          value: "选2",
          label: "女",
        },
      ],
      value2: "",
    };
  },
};
</script>

<style lang="less" scoped>
.top {
  width: 100%;

  border-radius: 4;
  display: flex;
  justify-content: space-between;
//  border: rgb(163, 33, 33) 1px solid;

  .left {
    width: 40%;
    height: 30px;
    line-height: 27px;

    /deep/ .el-input__inner {
      width: 100px;
      height: 26px;
      font-size: 12px;
      padding: 0 4px;
    }

    /deep/ .el-select .el-input .el-select__caret {
      font-size: 1px;
      line-height: 26px;
      margin-right: -5px;
    }
    /deep/ .left-s2 .el-input__inner {
      width: 80px;
      margin-left: 8px;
    }
  }
  .right {
    float: right;
    width: 60%;
    height: 30px;
    line-height: 30px;
    /deep/.el-input {
      float: right;
      width: 220px;
      height: 26px;
    }
    /deep/.el-input .el-input__inner {
      width: 220px;
      height: 26px;

    }
       /deep/ .el-input__icon{
          line-height: 32px;
      }
    /deep/ .el-button.is-circle {
      float: right;
      background-color: #03d3c6;
      color: white;
      padding: 8px;
      margin-left: 5px;
    }
  }
}
</style>